package com.oop;

/**
 * @author caizhengjun
 * @date 2020/9/4 8:20 下午
 */
public class Ball implements Rollable {

    private String name;

    public Ball(String name) {
        this.name = name;
    }

    public Ball() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void play() {
        Ball ball = new Ball("Football");
        System.out.println(ball.getName());
    }
}
